package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="SanitationAnnounce"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class SanitationAnnounce implements Serializable {

    /** identifier field */
    private Integer announceId;

    /** nullable persistent field */
    private String announceTitle;

    /** nullable persistent field */
    private String announceContent;

    /** nullable persistent field */
    private String createDate;

    /** nullable persistent field */
    private String publish;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public SanitationAnnounce(String announceTitle, String announceContent, String createDate, String publish, String userId, String latestDate, String remark) {
        this.announceTitle = announceTitle;
        this.announceContent = announceContent;
        this.createDate = createDate;
        this.publish = publish;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public SanitationAnnounce() {
    }

    /** minimal constructor */
    public SanitationAnnounce(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="AnnounceId"
     *             unsaved-value="0"
     *         
     */
    public Integer getAnnounceId() {
        return this.announceId;
    }

    public void setAnnounceId(Integer announceId) {
        this.announceId = announceId;
    }

    /** 
     *            @hibernate.property
     *             column="AnnounceTitle"
     *             length="300"
     *         
     */
    public String getAnnounceTitle() {
        return this.announceTitle;
    }

    public void setAnnounceTitle(String announceTitle) {
        this.announceTitle = announceTitle;
    }

    /** 
     *            @hibernate.property
     *             column="AnnounceContent"
     *             length="2147483647"
     *         
     */
    public String getAnnounceContent() {
        return this.announceContent;
    }

    public void setAnnounceContent(String announceContent) {
        this.announceContent = announceContent;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="Publish"
     *             length="1"
     *         
     */
    public String getPublish() {
        return this.publish;
    }

    public void setPublish(String publish) {
        this.publish = publish;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("announceId", getAnnounceId())
            .toString();
    }

}
